package entity.innerClass.lianxi.demo01;

public class ZhuanTong implements ArithMetic {
    @Override
    public void Shun(String type, int num1, int num2) {
        if (type.equals( "+" )){
            System.out.println(num1 + num2);
        }else if (type.equals("-")){
            System.out.println(num1 - num2);
        }
        else if (type.equals("*")){
            System.out.println(num1 * num2);
        }
        else if (type.equals("/")){
            System.out.println(num1 / num2);
        }
    }
}
